<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="/WEB-INF/pages/comm/comm.jsp"%>

<div class="container">
    <div class="row">

        <div class="col-xs-12  col-sm-12 sub-content-body-right">
            <div class="div-bg">
                <div class="sub-content-header"><span class="sub-content-title">我的订单</span></div>
                <div class="clearfix"></div>
                <div class="acc-seperate"></div>
                <div class="sub-content-body">

                    <div class="order-jxzf">
                        <img src="${hyrt}/static/images/pay_ico1.png"  />
                        <p class="order-state">支付成功</p>
                        <p class="order-text">页面将在<span id="ts" style="color:red">5</span>秒钟后跳转，您也可以直接</p>
                        <a class="btn btn-default" href="${hyrt}/video/vdetail?id=${vid}">点击跳转</a>
                    </div>

                    <div class="clearfix"></div>

                </div>
            </div>
        </div>
    </div>
</div>

<script>
var timer;
var countsfive = 5;
$(function(){
  timer = setInterval(countnum,1000);
});
function countnum(){
	if(countsfive==1){
		clearInterval(timer);
		window.location.href="${hyrt}/video/vdetail?id="+'${vid}';
	}else{
		countsfive = countsfive-1;
		$('#ts').text(countsfive);
	}
}
</script>
</body>
</html>
